<div  class="add-new">
	
		<?php echo $this->Html->link($this->Html->image('add-new.png').'Add New', array('action' => 'add'),array('class'=>'shortcut','escape' => false)); ?>
		
</div>
<div class="menus index">
    <h2><?php echo __('Pages'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th><?php echo $this->Paginator->sort('title'); ?></th>
       
           
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($posts as $page): ?>
            <tr>
                <td><?php echo h($page['Post']['id']); ?>&nbsp;</td>
                <td><?php echo h($page['Post']['title']); ?>&nbsp;</td>
               
               
                <td class="actions">
                     <?php echo $this->Html->link($this->Html->image('view.png'), array('action' => 'single', $page['Post']['id']),array('class'=>'shortcut','escape' => false)); ?>
			<?php echo $this->Html->link($this->Html->image('edit.png'), array('action' => 'edit', $page['Post']['id']),array('class'=>'shortcut','escape' => false)); ?>
			<?php  
                        echo $this->Form->postLink($this->Html->image('delete.png',
                            array("alt" => __('Delete'), "title" => __('Delete'))), 
                         array('action' => 'deletepost', $page['Post']['id']), 
                         array('escape' => false, 'confirm' => __('Are you sure?')));?>
                   
                  
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <p>
       
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>
